//
//  AISliderView.m
//  xpkc
//
//  Created by TopSage on 15/9/21.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import "AISliderView.h"

@interface AISliderView (){
    UIScrollView *scroll;
    NSTimer *timer;
}

@end

@implementation AISliderView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatBaseView];
    }
    return self;
}

- (void)creatBaseView{
    scroll = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    scroll.delegate = self;
    [self addSubview:scroll];
    [self initTimer];
}
- (void)initTimer{
    if (timer) {
        [timer invalidate];
        timer = nil;
    }
    timer = [[NSTimer alloc]initWithFireDate:[NSDate date] interval:1 target:self selector:@selector(show) userInfo:nil repeats:YES];
    [timer fire];
}

- (void)show{
}

- (void)setImageArray:(NSArray *)imageArray{
    if (imageArray.count <=3) {
        //
    }else{
    }
}


#pragma mark - scrolldelegate
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
}

@end
